package cn.fboost.mtos.mapper;

import cn.fboost.mtos.dto.request.PageRequest;
import cn.fboost.mtos.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    int create(Admin admin);
    int update(Admin admin);
    int deleteById(int id);
    Admin findById(int id);
    Admin findByUsername(String username);
    List<Admin> list(PageRequest.PageOffset pagination);
}
